package ooday03homework;

import java.awt.*;

public class Dog extends Animal implements Swim{

    Dog(){

    }
    Dog(String name, int age, Color color){
        super(name, age, color);
    }

    void LookHome(){
        System.out.println("名叫"+name+"今年"+age+"岁了"+color+"色的狗狗正看家。。。。。。");
    }

    @Override
    void eat() {
        System.out.println("名叫"+name+"今年"+age+"岁了"+color+"色的狗狗正吃狗粮。。。。。。");
    }

    @Override
    public void swim() {
        System.out.println("名叫"+name+"今年"+age+"岁了"+color+"色的狗狗正狗刨式游泳。。。。。。");
    }
}
